package homework.homework2;

import javax.swing.*;
import java.awt.*;

public class UpPan extends JPanel {
    private JTextField jt;

    private JLabel jLabel;

    private String lableStr;

    public UpPan(){
        this.setBounds(0, 0, 480, 70);

        this.setLayout(new GridLayout(2,1));

        jt = new JTextField(20);
        jt.setEnabled(false);

        jLabel = new JLabel();

        this.add(jt);
        this.add(jLabel);
    }

    public void setLableStr(String lableStr){
        this.lableStr = lableStr;
    }

    public JTextField getJt() {
        return jt;
    }
}
